package com.crazydream.wechat.system.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.crazydream.wechat.common.model.TableEntity;

@Entity
@NamedQueries( { @NamedQuery(name = Resource.FIND_FOR_ALL, query = "from Resource r") })
@Table(name = "t_resource")
public class Resource extends TableEntity {

	private static final long serialVersionUID = -5012526212864050811L;
	
	public static final String FIND_FOR_ALL ="findForAll";

	private String mold;

	private String content;

	private String descr;

	private Integer enabled;

	@Temporal(TemporalType.TIMESTAMP)
	private Date createdate;


	public String getMold() {
		return mold;
	}

	public void setMold(String mold) {
		this.mold = mold;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getDescr() {
		return descr;
	}

	public void setDescr(String descr) {
		this.descr = descr;
	}

	public Integer getEnabled() {
		return enabled;
	}

	public void setEnabled(Integer enabled) {
		this.enabled = enabled;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}


}